<style>
#usersList {width:480px;border:thin #000 solid; background:#ccc;}
#usersList tr {background:#fff;text-align:center}
</style>
<table id="usersList">
<thead>
<tr>
<th><?php echo $this->translate('group')?></th>
<th><?php echo $this->translate('users')?></th>
<th><?php echo $this->translate('permission item')?></th>
<th><?php echo $this->translate('permission')?></th>
</tr>
</thead>
<tbody>
<?php foreach($this->data as $roleId=>$row):?>
<tr><td><?php echo $roleId?></td>
<td>
<?php if ($roleId == 'Guest'):?>
<?php echo $this->translate('All users')?>
<?php elseif ($roleId == 'Register'):?>
<?php echo $this->translate('Register users')?>
<?php else:?>
<?php foreach($row['users'] as $users):?>
<?php echo $users['id'].'--'.$users['name']?><br/>
<?php endforeach;?>
<?php endif?>
</td>
<td>
<?php if ($row['controller']==''):?><?php echo $this->translate('all permission item')?><?php else:?>
        <?php $arr = array();?>
        <?php foreach(explode(":",$row['controller']) as $val2):?>
        <?$arr[] = $this->translate($this->cMenu[$val2])?>
        <?php endforeach?>
        <?php echo  implode(" . ",$arr)?>
    <?php endif?>
</td>
<td>
    <?php if($row['allow']):?><span class="allow"><?php echo $this->translate('allow')?></span><?php else:?>
        <span class="deny"><?php echo $this->translate('deny')?></span>
        <?php endif;?>
</td>
</tr>
<?php endforeach?>
</tbody>
</table>